package com.hoshiicloud.user.feign.hystrix;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.user.feign.INeo4jService;
import com.hoshiicloud.user.param.rbac.RObject;

/**
 * @author guangjinwei
 * @create 2019-04-25
 */
public class HystrixNeo4jFeignFallback implements INeo4jService {

    @Override
    public Response createTenant(String tenant) {

        return Response.failed("熔断时调用");
    }

    @Override
    public Response createOrganization(String org) {

        return Response.failed("熔断时调用");
    }


    @Override
    public Response createPlatform(String param) {
        return Response.failed("创建失败");
    }

    @Override
    public Response addRole(RObject param) {
        return null;
    }

    @Override
    public Response addDept(RObject param) {
        return null;
    }
}
